﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MimeKit;

namespace Furion.Extras.Admin.NET.Components.EMail
{
    public class EmailConfig
    {
        public int Port { get; set; } = 25; //25
        public string Host { get; set; } //smtp.hantianwei.cn
        public bool IsHtml { get; set; } = true;
        public bool UseSsl { get; set; } = false;

        public string MailFromAccount { get; set; }//mail@hantianwei.cn
        public string MailPassword { get; set; }

        public bool IsProxy { get; set; } = false;
        public string ProxyHost { get; set; }
        public int ProxyPort { get; set; }

        public MailAddress From { get; set; }

    }
    /// <summary>
    ///
    /// </summary>
    public class MailAddress : MailboxAddress
    {
        public MailAddress(string name, string address) : base(name, address)
        {
        }

        public MailAddress(Encoding encoding, string name, string address) : base(encoding, name, address)
        {
        }
    }

}
